/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ac.za.cput.designpatterns.creational.abstractFactoryPattern.model;

import ac.za.cput.designpatterns.creational.factoryMethodPattern.model.Animal;

/**
 *
 * @author user
 */
public class ReptileFactory extends SpeciesFactory {

    @Override
    public Animal getAnimal(String type) {
       if("snake".equals(type)){
           return new Snake();
       }else {
           return new Tyrannosaurus();
       }
    }
    
}
